# $Id$
# Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>

pkgname=sdl2_net
epoch=1
pkgver=2.0.1
pkgrel=1
pkgdesc="A small sample cross-platform networking library (Version 2)"
arch=('i686' 'x86_64')
url="http://www.libsdl.org/projects/SDL_net"
license=('MIT')
depends=(sdl2)
source=("$url/release/SDL2_net-${pkgver}.tar.gz")
md5sums=('5c1d9d1cfa63301b141cb5c0de2ea7c4')

build() {
  cd "${srcdir}/SDL2_net-${pkgver}/"

  ./configure --disable-static --prefix=/usr
  make
}

package() {
  cd "${srcdir}/SDL2_net-${pkgver}/"

  make DESTDIR="${pkgdir}" install
  install -Dm644 COPYING.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
